package com.sfx.concurrent.demo.线程基础.线程的创建;

public class TestThread1 {
    public static void main(String[] args) {
        Thread t = new MyThread();
        t.start();
    }
}

//使用普通类继承Thread
class MyThread extends Thread {
    @Override
    public void run() {
        System.out.println("我使用的是普通类来继承Thread类");
    }
}